package cn.tedu.boot.ers.config;

import com.google.common.collect.Sets;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @Description: 常量值
 * @Author: han
 * @Date:
 **/
@Component
public class Constant {
    public static final String ERS_USER = "ERS_user";

    //    上传文件的地址,这里在配置中配置
    public static String FILE_UPLOAD_DIR;


    @Value("${file.upload.dir}")
    public void setFileUploadDir(String fileUploadDir) {
        FILE_UPLOAD_DIR = fileUploadDir;
    }

    public interface ProductListOrderBy {
        Set<String> PRICE_ASC_DESC = Sets.newHashSet("price desc", "price asc");
    }


}
